import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home-page',
      children:[
        {
          path: '/records',
          name: 'records-page',
          component: require('@/views/records/index').default
        },
        {
          path: '/analysis',
          name: 'analysis-page',
          component: require('@/views/analysis/index').default
        },
        {
          path: '/teams',
          name: 'teams-page',
          component: require('@/views/teams/index').default
        },
        {
          path: '/heros',
          name: 'heros-page',
          component: require('@/views/heros/index').default
        },
      ],
      component: require('@/views/IndexPage').default
    },
    {
      path: '*',
      redirect: '/'
    }
  ]
})
